package com.baizhi.cmfz.appcontroller;

import com.baizhi.cmfz.entity.Article;
import com.baizhi.cmfz.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * This is a Class.
 *
 * @author zhanglh
 * @date 2019/09/23
 */
@RestController
@RequestMapping("appArticle")
public class AppArticleController {
    @Autowired
    private ArticleService articleService;

    @GetMapping("fundArticleList/{count}")
    public List<Article> fundArticleList(@PathVariable int count) {
        return articleService.fundArticleList(count);
    }
}
